﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Bll;
using Model;

namespace WebApplication1
{
	public partial class Login : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}

		protected void Button1_Click(object sender, EventArgs e)
		{
            string Account = txtName.Text.Trim();
            string password = txtpassword.Text.Trim();
            Model.User tt =Userblll.Delu(Account, password);
            if (tt != null)
            {
                ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('登录成功')</script>");
            }
            else
            {
                ClientScript.RegisterStartupScript(GetType(), "", "<script>alert('登录失败')</script>");
            }
        }
	}
}